<template name="skeleton">
  <view class="sk-container">
    <scroll-view :refresher-enabled="true" :scroll-y="true" class="scroll-view scroll-view">
      <view is="components/XtxSwiper">
        <view class="carousel XtxSwiper--carousel">
          <swiper :autoplay="false" :circular="true" :interval="3000" :current="0">
            <swiper-item
              style="
                position: absolute;
                width: 100%;
                height: 100%;
                transform: translate(0%, 0px) translateZ(0px);
              "
            >
              <navigator
                class="navigator XtxSwiper--navigator"
                hover-class="none"
                open-type="navigate"
              >
                <image mode="aspectFill" class="sk-image"></image>
              </navigator>
            </swiper-item>
          </swiper>
          <view class="indicator XtxSwiper--indicator">
            <text class="dot XtxSwiper--dot active XtxSwiper--active"></text>
            <text class="dot XtxSwiper--dot"></text>
            <text class="dot XtxSwiper--dot"></text>
            <text class="dot XtxSwiper--dot"></text>
            <text class="dot XtxSwiper--dot"></text>
          </view>
        </view>
      </view>
      <view is="pages/index/components/CategoryPanel">
        <view class="category CategoryPanel--category">
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-692 sk-text"
              >居家</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-828 sk-text"
              >锦鲤</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-133 sk-text"
              >服饰</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-844 sk-text"
              >母婴</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-645 sk-text"
              >个护</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-122 sk-text"
              >严选</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-426 sk-text"
              >数码</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-512 sk-text"
              >运动</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-688 sk-text"
              >杂项</text
            >
          </navigator>
          <navigator
            class="category-item CategoryPanel--category-item"
            hover-class="none"
            open-type="navigate"
          >
            <image class="icon CategoryPanel--icon sk-image" mode="scaleToFill"></image>
            <text class="text CategoryPanel--text sk-transparent sk-text-14-2857-765 sk-text"
              >品牌</text
            >
          </navigator>
        </view>
      </view>
      <view is="pages/index/components/HotPanel">
        <view class="panel HotPanel--panel hot HotPanel--hot">
          <view class="item HotPanel--item">
            <view class="title HotPanel--title">
              <text
                class="title-text HotPanel--title-text sk-transparent sk-text-14-2857-516 sk-text"
                >特惠推荐</text
              >
              <text
                class="title-desc HotPanel--title-desc sk-transparent sk-text-14-2857-632 sk-text"
                >精选全攻略</text
              >
            </view>
            <navigator class="cards HotPanel--cards" hover-class="none" open-type="navigate">
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
            </navigator>
          </view>
          <view class="item HotPanel--item">
            <view class="title HotPanel--title">
              <text
                class="title-text HotPanel--title-text sk-transparent sk-text-14-2857-38 sk-text"
                >爆款推荐</text
              >
              <text
                class="title-desc HotPanel--title-desc sk-transparent sk-text-14-2857-143 sk-text"
                >最受欢迎</text
              >
            </view>
            <navigator class="cards HotPanel--cards" hover-class="none" open-type="navigate">
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
            </navigator>
          </view>
          <view class="item HotPanel--item">
            <view class="title HotPanel--title">
              <text
                class="title-text HotPanel--title-text sk-transparent sk-text-14-2857-940 sk-text"
                >一站买全</text
              >
              <text
                class="title-desc HotPanel--title-desc sk-transparent sk-text-14-2857-180 sk-text"
                >精心优选</text
              >
            </view>
            <navigator class="cards HotPanel--cards" hover-class="none" open-type="navigate">
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
            </navigator>
          </view>
          <view class="item HotPanel--item">
            <view class="title HotPanel--title">
              <text
                class="title-text HotPanel--title-text sk-transparent sk-text-14-2857-874 sk-text"
                >新鲜好物</text
              >
              <text
                class="title-desc HotPanel--title-desc sk-transparent sk-text-14-2857-779 sk-text"
                >生活加分项</text
              >
            </view>
            <navigator class="cards HotPanel--cards" hover-class="none" open-type="navigate">
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
              <image class="image HotPanel--image sk-image" mode="scaleToFill"></image>
            </navigator>
          </view>
        </view>
      </view>
      <view is="components/XtxGuess" class="r r">
        <view class="caption XtxGuess--caption">
          <text
            class="text XtxGuess--text sk-transparent sk-text-0-0000-194 sk-text sk-pseudo sk-pseudo-circle"
            >猜你喜欢</text
          >
        </view>
      </view>
    </scroll-view>
  </view>
</template>

<script lang="ts" setup></script>
<style lang="scss">
/* #ifdef H5 || APP-PLUS */
/** 修复 H5 端骨架屏样式异常 */
/** 原因: H5 端样式自动开启 scoped 隔离,导致骨架屏的基础样式被隔离 */
@import '../styles/category.scss';
@import '../styles//hot.scss';
@import '@/components/styles/XtxSwiper.scss';
/* #endif */

.sk-transparent {
  color: transparent !important;
}
.sk-text-3-5714-670 {
  background-image: linear-gradient(
    transparent 3.5714%,
    #eeeeee 0%,
    #eeeeee 96.4286%,
    transparent 0%
  ) !important;
  background-size: 100% 28rpx;
  position: relative !important;
}
.sk-text {
  background-origin: content-box !important;
  background-clip: content-box !important;
  background-color: transparent !important;
  color: transparent !important;
  background-repeat: repeat-y !important;
}
.sk-text-14-2857-667 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 39.2rpx;
  position: relative !important;
}
.sk-text-14-2857-692 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-828 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-133 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-844 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-645 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-122 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-426 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-512 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-688 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-765 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 36.4rpx;
  position: relative !important;
}
.sk-text-14-2857-516 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 44.8rpx;
  position: relative !important;
}
.sk-text-14-2857-632 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 33.6rpx;
  position: relative !important;
}
.sk-text-14-2857-38 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 44.8rpx;
  position: relative !important;
}
.sk-text-14-2857-143 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 33.6rpx;
  position: relative !important;
}
.sk-text-14-2857-940 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 44.8rpx;
  position: relative !important;
}
.sk-text-14-2857-180 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 33.6rpx;
  position: relative !important;
}
.sk-text-14-2857-874 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 44.8rpx;
  position: relative !important;
}
.sk-text-14-2857-779 {
  background-image: linear-gradient(
    transparent 14.2857%,
    #eeeeee 0%,
    #eeeeee 85.7143%,
    transparent 0%
  ) !important;
  background-size: 100% 33.6rpx;
  position: relative !important;
}
.sk-text-0-0000-194 {
  background-image: linear-gradient(
    transparent 0%,
    #eeeeee 0%,
    #eeeeee 100%,
    transparent 0%
  ) !important;
  background-size: 100% 32rpx;
  position: relative !important;
}
.sk-image {
  background: #efefef !important;
}
.sk-pseudo::before,
.sk-pseudo::after {
  background: #efefef !important;
  background-image: none !important;
  color: transparent !important;
  border-color: transparent !important;
}
.sk-pseudo-rect::before,
.sk-pseudo-rect::after {
  border-radius: 0 !important;
}
.sk-pseudo-circle::before,
.sk-pseudo-circle::after {
  border-radius: 50% !important;
}
.sk-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: transparent;
}
</style>
